import { DEFAULT_LAYOUT } from './base'
import { AppRouteRecordRaw } from './types'

const VISUALIZATION: AppRouteRecordRaw = {
  path: '/visualization',
  name: 'visualization',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '概况',
    requiresAuth: true,
    icon: 'icon-bar-chart',
    order: 1,
  },
  children: [
    // {
    //   path: 'data-analysis',
    //   name: 'DataAnalysis',
    //   component: () => import('@/views/visualization/data-analysis/index.vue'),
    //   meta: {
    //     locale: '分析页',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
    {
      path: 'multi-dimension-data-analysis',
      name: 'dimensionDataAnalysis',
      component: () => import('@/views/visualization/multi-dimension-data-analysis/index.vue'),
      meta: {
        locale: '多维数据',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'order',
      name: 'order',
      component: () => import('@/views/visualization/order/index.vue'),
      meta: {
        locale: '订单数据',
        requiresAuth: true,
        roles: ['*'],
        notColor: true,
      },
    },
  ],
}

export default VISUALIZATION
